<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="breadcrumb_wrap">
        <ul class="breadcrumb">
            <li>您的位置：</li>
            <li> <a href="messages_list.html">信息管理</a> <span class="divider">></span> </li>
            <li class="active">列表</li>
        </ul>
    </div>
    <div class="button_box table_btn_box">
        <button type="button" class="btn btn-primary btn_del" ng-click="mutCleanMsgFun()"><i class="glyphicon glyphicon-trash"></i>批量清空</button>
    </div>
    <div class="table-responsive con_list">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th><input type="checkbox" ng-model="allCheck"></th>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>最新消息</th>
                    <th>发布时间</th>
                    <th>未读</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="user in userList">
                    <th><input type="checkbox" ng-checked="allCheck" name="userMsg" value="{{user.id}}"></th>
                    <td>{{$index+1}}</td>
                    <td>{{user.realName}}</td>
                    <td>{{user.newMsg.lastMessage.content}}</td>
                    <td>{{user.newMsg.lastMessage.publishTime|dateStr:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>{{user.newMsg.count}}</td>
                    <td class="ops">
                        <a href="/xdd/common/kfry/chat/{{user.id}}"><button type="button" class="btn btn-primary"  >查看</button></a>
                        <button type="button" class="btn btn-primary del" ng-click="cleanTalkMsgFun(user.id)">清空</button></td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="page_wrap">
        <div class="text-center scott">
            <uib-pagination  total-items="totalItems" ng-model="currentPage" boundary-links="true" max-size="5"   ng-change="pageChanged()" items-per-page="itemsPerPage" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
        </div>
    </div>
</div>